package com.bitdf.txing.search.feign;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.search.config.FeignInterceptor;
import com.bitdf.txing.search.to.GroupInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author Lizhiwei
 * @date 2023/3/5 11:08:20
 * 注释：
 */
@FeignClient(
        name = "tx-group",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface EsGroupFeignService {
    @RequestMapping("/txing/group/info/sync/database")
    R syncDatabase(@RequestBody List<GroupInfoTo> list);
}
